import type { AppRouteModule } from '/@/router/types';

import { t } from '/@/hooks/web/useI18n';
import { LAYOUT } from '/@/router/constant';

const dashboard: AppRouteModule = {
  path: '/',
  name: 'Test',
  component: LAYOUT,
  redirect: '/test',
  meta: {
    hideChildrenInMenu: true, // 隐藏子菜单（实际使用这种方法意味着不需要子菜单，所以children数组应只有一个数据）
    orderNo: 10,
    icon: 'ion:grid-outline',
    title: t('test'),
  },
  children: [
    {
      path: 'test', // 注意：这里路径不能加 '/'
      name: 'Test',
      component: () => import('/@/views/test/TestPage.vue'),
      meta: {
        // affix: true,
        title: t('test page'),
      },
    },
  ],
};

export default dashboard;
